home *** CD-ROM | disk | FTP | other *** search
- #include "bm.h" /* N2 03-17-91 */
- #include <stdlib.h> /* N2 03-17-91 */
- #include "proto.h" /* N2 04-05-91 */
-
- void PutUsage(void) /* N2 11-28-91 now puts NOT fprintf(stderr */
- {
- puts("grep: search for a given string or strings in a file or files");
- puts("using Boyer-Moore String Search Program");
- puts("Turbo-C version by David Polansky 03/21/88");
- puts("Borland C++ 3.10 version. Ver: 1.03 by L.B. Neal 09/29/92\n");
- puts("synopsis: grep [option] [string(s)] [file]"); // 1.03
- puts("options:");
- puts("-m Match for case as well (default=ignore case)");
- puts("-c print only a count of matching lines");
- puts("-f PFile read patterns from a file PFile");
- puts("-l print a list of files containing the pattern(s)");
- puts("-n print the character offset of the pattern(s)");
- puts("-s silent mode. Return only success (0) or failure (1)");
- puts("-x print only lines which match entirely");
- puts("-e Take next argument as the pattern");
- puts("-h Do not print file names");
- puts("-z Use DirectVideo for Speed");
- exit(2);
- } /*PutUsage */
-